package org.yellow.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;
import org.yellow.backend.pojo.medicalrecords;

@Repository
@SuppressWarnings({"all"})
public interface recordsMapper extends BaseMapper<medicalrecords> {

    /**
     * 添加病历
     */
    @Insert("INSERT INTO medicalrecords " +
            "(patient_id,patient_name,date_of_birth,gender,diagnosis_name,admission_date,discharge_date)" +
            " values (#{patientId},#{PatientName},#{DateOfBirth},#{Gender},#{DiagnosisName},#{AdmissionDate},#{DischargeDate})")
    boolean insertNew(medicalrecords mr);

}
